/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trab01_so;

/**
 *
 * @author Leonardo
 */
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

public class Trab01_SO extends SingleFrameApplication {

   
    public static void main(String[] args) throws FileNotFoundException, IOException {
         launch(Trab01_SO.class, args);
    }
    

    @Override
    public void startup() {
        AppView view;
        try {
            view = new AppView(this);
            show(view);
            MemoriaPrincipal mp = new MemoriaPrincipal();
            MemoriaVirtual mv = new MemoriaVirtual();
            GM gerenciador = new GM(mv, mp);
            view.setGerenciador(gerenciador);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Trab01_SO.class.getName()).log(Level.SEVERE, null, ex);
        }
       
    }

    @Override
    protected void configureWindow(java.awt.Window root) {
    }
    
}
